/*
 * Siege.h
 *
 *  Created on: 23 mars 2012
 *      Author: root
 */

#ifndef SIEGE_H_
#define SIEGE_H_
#include <iostream>
#include "Parking.h"
#include "Agence.h"
#include<string>

using namespace std;

class Siege {

private:
	long IdentifiantAdmin;
	string NomAdmin;
	string login;
	string Password;
	string Adresse;
	long Tel;
	
	string ParkingFileName;
	string AgenceFileName;
	string SiegeFileName;
	string VehiculeFileName;
	string Vehicule_utilitaireFileName;
	string Vehicule_touristiqueFileName;
	string FileNameTemp;

public:
	Siege();
	Siege(long,string,string,string,string,long);
	virtual ~Siege();

	long getIdentifiantAdmin()const;
	void setIdentifiantAdmin(long);

	string getNomAdmin()const;
	void setNomAdmin(string);

	string getlogin()const;
	void setlogin(string);

	string getPassword()const;
	void setPassword(string);

	string getAdresse()const;
	void setAdresse(string);

	long getTel()const;
	void setTel(long);


bool VerifierExistanceParking(long);
bool AjouterParking(const Parking&);

bool VerifierExistanceAgence(long);
bool AjouterAgence(const Agence&);

bool VerifierExistanceVehicule(string);
bool AjouterVehicule(const Vehicule&);

bool VerifierExistanceVehiculeUtilitaire(string);
bool AjouterVehiculeUtilitaire( const VehiculeUtilitaire& V);

bool VerifierExistanceVehiculeTouristique(string);
bool AjouterVehiculeTouristique(const VehiculeTouristique&);

bool ModifierParkingPlus(long);


friend ifstream& operator>> (ifstream&, Siege&);
};
ifstream& operator>> (ifstream&, Siege&);
#endif /* SIEGE_H_ */
